package com.gitee.wsl.coroutines.job

interface IInterruptableJob : IJob {
    /**
     *
     *
     * Called by the `[IScheduler]` when a user interrupts the
     * `Job`.
     *
     *
     * @throws UnableToInterruptJobException
     * if there is an exception while interrupting the job.
     */
    fun interrupt()
}